% By YLX on 6/11
% Version 4.0 
% function for equation (12)
function F = function_F(m)
    F = 0;
    for m_tilde = 0:m-1 % <<<< changed here
        F = F + function_Poiss(m_tilde);
    end
    return; 